/****************************************************************************
** Meta object code from reading C++ file 'Serial.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../src/IO/DataSources/Serial.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Serial.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_IO__DataSources__Serial_t {
    QByteArrayData data[42];
    char stringdata0[585];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_IO__DataSources__Serial_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_IO__DataSources__Serial_t qt_meta_stringdata_IO__DataSources__Serial = {
    {
QT_MOC_LITERAL(0, 0, 23), // "IO::DataSources::Serial"
QT_MOC_LITERAL(1, 24, 11), // "portChanged"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 13), // "parityChanged"
QT_MOC_LITERAL(4, 51, 15), // "baudRateChanged"
QT_MOC_LITERAL(5, 67, 15), // "dataBitsChanged"
QT_MOC_LITERAL(6, 83, 15), // "stopBitsChanged"
QT_MOC_LITERAL(7, 99, 16), // "portIndexChanged"
QT_MOC_LITERAL(8, 116, 18), // "flowControlChanged"
QT_MOC_LITERAL(9, 135, 19), // "baudRateListChanged"
QT_MOC_LITERAL(10, 155, 20), // "baudRateIndexChanged"
QT_MOC_LITERAL(11, 176, 21), // "availablePortsChanged"
QT_MOC_LITERAL(12, 198, 15), // "connectionError"
QT_MOC_LITERAL(13, 214, 4), // "name"
QT_MOC_LITERAL(14, 219, 16), // "disconnectDevice"
QT_MOC_LITERAL(15, 236, 11), // "setBaudRate"
QT_MOC_LITERAL(16, 248, 4), // "rate"
QT_MOC_LITERAL(17, 253, 9), // "setParity"
QT_MOC_LITERAL(18, 263, 11), // "parityIndex"
QT_MOC_LITERAL(19, 275, 12), // "setPortIndex"
QT_MOC_LITERAL(20, 288, 9), // "portIndex"
QT_MOC_LITERAL(21, 298, 14), // "appendBaudRate"
QT_MOC_LITERAL(22, 313, 8), // "baudRate"
QT_MOC_LITERAL(23, 322, 11), // "setDataBits"
QT_MOC_LITERAL(24, 334, 13), // "dataBitsIndex"
QT_MOC_LITERAL(25, 348, 11), // "setStopBits"
QT_MOC_LITERAL(26, 360, 13), // "stopBitsIndex"
QT_MOC_LITERAL(27, 374, 14), // "setFlowControl"
QT_MOC_LITERAL(28, 389, 16), // "flowControlIndex"
QT_MOC_LITERAL(29, 406, 12), // "readSettings"
QT_MOC_LITERAL(30, 419, 13), // "writeSettings"
QT_MOC_LITERAL(31, 433, 20), // "refreshSerialDevices"
QT_MOC_LITERAL(32, 454, 11), // "handleError"
QT_MOC_LITERAL(33, 466, 28), // "QSerialPort::SerialPortError"
QT_MOC_LITERAL(34, 495, 5), // "error"
QT_MOC_LITERAL(35, 501, 8), // "portName"
QT_MOC_LITERAL(36, 510, 8), // "portList"
QT_MOC_LITERAL(37, 519, 10), // "parityList"
QT_MOC_LITERAL(38, 530, 12), // "baudRateList"
QT_MOC_LITERAL(39, 543, 12), // "dataBitsList"
QT_MOC_LITERAL(40, 556, 12), // "stopBitsList"
QT_MOC_LITERAL(41, 569, 15) // "flowControlList"

    },
    "IO::DataSources::Serial\0portChanged\0"
    "\0parityChanged\0baudRateChanged\0"
    "dataBitsChanged\0stopBitsChanged\0"
    "portIndexChanged\0flowControlChanged\0"
    "baudRateListChanged\0baudRateIndexChanged\0"
    "availablePortsChanged\0connectionError\0"
    "name\0disconnectDevice\0setBaudRate\0"
    "rate\0setParity\0parityIndex\0setPortIndex\0"
    "portIndex\0appendBaudRate\0baudRate\0"
    "setDataBits\0dataBitsIndex\0setStopBits\0"
    "stopBitsIndex\0setFlowControl\0"
    "flowControlIndex\0readSettings\0"
    "writeSettings\0refreshSerialDevices\0"
    "handleError\0QSerialPort::SerialPortError\0"
    "error\0portName\0portList\0parityList\0"
    "baudRateList\0dataBitsList\0stopBitsList\0"
    "flowControlList"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_IO__DataSources__Serial[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      23,   14, // methods
      13,  170, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
      11,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  129,    2, 0x06 /* Public */,
       3,    0,  130,    2, 0x06 /* Public */,
       4,    0,  131,    2, 0x06 /* Public */,
       5,    0,  132,    2, 0x06 /* Public */,
       6,    0,  133,    2, 0x06 /* Public */,
       7,    0,  134,    2, 0x06 /* Public */,
       8,    0,  135,    2, 0x06 /* Public */,
       9,    0,  136,    2, 0x06 /* Public */,
      10,    0,  137,    2, 0x06 /* Public */,
      11,    0,  138,    2, 0x06 /* Public */,
      12,    1,  139,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      14,    0,  142,    2, 0x0a /* Public */,
      15,    1,  143,    2, 0x0a /* Public */,
      17,    1,  146,    2, 0x0a /* Public */,
      19,    1,  149,    2, 0x0a /* Public */,
      21,    1,  152,    2, 0x0a /* Public */,
      23,    1,  155,    2, 0x0a /* Public */,
      25,    1,  158,    2, 0x0a /* Public */,
      27,    1,  161,    2, 0x0a /* Public */,
      29,    0,  164,    2, 0x08 /* Private */,
      30,    0,  165,    2, 0x08 /* Private */,
      31,    0,  166,    2, 0x08 /* Private */,
      32,    1,  167,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   13,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   16,
    QMetaType::Void, QMetaType::UChar,   18,
    QMetaType::Void, QMetaType::UChar,   20,
    QMetaType::Void, QMetaType::QString,   22,
    QMetaType::Void, QMetaType::UChar,   24,
    QMetaType::Void, QMetaType::UChar,   26,
    QMetaType::Void, QMetaType::UChar,   28,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 33,   34,

 // properties: name, type, flags
      35, QMetaType::QString, 0x00495001,
      20, QMetaType::UChar, 0x00495103,
      18, QMetaType::UChar, 0x00495003,
      24, QMetaType::UChar, 0x00495003,
      26, QMetaType::UChar, 0x00495003,
      28, QMetaType::UChar, 0x00495003,
      22, QMetaType::Int, 0x00495103,
      36, QMetaType::QStringList, 0x00495001,
      37, QMetaType::QStringList, 0x00095401,
      38, QMetaType::QStringList, 0x00495001,
      39, QMetaType::QStringList, 0x00095401,
      40, QMetaType::QStringList, 0x00095401,
      41, QMetaType::QStringList, 0x00095401,

 // properties: notify_signal_id
       0,
       5,
       1,
       3,
       4,
       6,
       2,
       9,
       0,
       7,
       0,
       0,
       0,

       0        // eod
};

void IO::DataSources::Serial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Serial *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->portChanged(); break;
        case 1: _t->parityChanged(); break;
        case 2: _t->baudRateChanged(); break;
        case 3: _t->dataBitsChanged(); break;
        case 4: _t->stopBitsChanged(); break;
        case 5: _t->portIndexChanged(); break;
        case 6: _t->flowControlChanged(); break;
        case 7: _t->baudRateListChanged(); break;
        case 8: _t->baudRateIndexChanged(); break;
        case 9: _t->availablePortsChanged(); break;
        case 10: _t->connectionError((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 11: _t->disconnectDevice(); break;
        case 12: _t->setBaudRate((*reinterpret_cast< const qint32(*)>(_a[1]))); break;
        case 13: _t->setParity((*reinterpret_cast< const quint8(*)>(_a[1]))); break;
        case 14: _t->setPortIndex((*reinterpret_cast< const quint8(*)>(_a[1]))); break;
        case 15: _t->appendBaudRate((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 16: _t->setDataBits((*reinterpret_cast< const quint8(*)>(_a[1]))); break;
        case 17: _t->setStopBits((*reinterpret_cast< const quint8(*)>(_a[1]))); break;
        case 18: _t->setFlowControl((*reinterpret_cast< const quint8(*)>(_a[1]))); break;
        case 19: _t->readSettings(); break;
        case 20: _t->writeSettings(); break;
        case 21: _t->refreshSerialDevices(); break;
        case 22: _t->handleError((*reinterpret_cast< QSerialPort::SerialPortError(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::portChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::parityChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::baudRateChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::dataBitsChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::stopBitsChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::portIndexChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::flowControlChanged)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::baudRateListChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::baudRateIndexChanged)) {
                *result = 8;
                return;
            }
        }
        {
            using _t = void (Serial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::availablePortsChanged)) {
                *result = 9;
                return;
            }
        }
        {
            using _t = void (Serial::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Serial::connectionError)) {
                *result = 10;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<Serial *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->portName(); break;
        case 1: *reinterpret_cast< quint8*>(_v) = _t->portIndex(); break;
        case 2: *reinterpret_cast< quint8*>(_v) = _t->parityIndex(); break;
        case 3: *reinterpret_cast< quint8*>(_v) = _t->dataBitsIndex(); break;
        case 4: *reinterpret_cast< quint8*>(_v) = _t->stopBitsIndex(); break;
        case 5: *reinterpret_cast< quint8*>(_v) = _t->flowControlIndex(); break;
        case 6: *reinterpret_cast< qint32*>(_v) = _t->baudRate(); break;
        case 7: *reinterpret_cast< QStringList*>(_v) = _t->portList(); break;
        case 8: *reinterpret_cast< QStringList*>(_v) = _t->parityList(); break;
        case 9: *reinterpret_cast< QStringList*>(_v) = _t->baudRateList(); break;
        case 10: *reinterpret_cast< QStringList*>(_v) = _t->dataBitsList(); break;
        case 11: *reinterpret_cast< QStringList*>(_v) = _t->stopBitsList(); break;
        case 12: *reinterpret_cast< QStringList*>(_v) = _t->flowControlList(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<Serial *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setPortIndex(*reinterpret_cast< quint8*>(_v)); break;
        case 2: _t->setParity(*reinterpret_cast< quint8*>(_v)); break;
        case 3: _t->setDataBits(*reinterpret_cast< quint8*>(_v)); break;
        case 4: _t->setStopBits(*reinterpret_cast< quint8*>(_v)); break;
        case 5: _t->setFlowControl(*reinterpret_cast< quint8*>(_v)); break;
        case 6: _t->setBaudRate(*reinterpret_cast< qint32*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject IO::DataSources::Serial::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_IO__DataSources__Serial.data,
    qt_meta_data_IO__DataSources__Serial,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *IO::DataSources::Serial::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *IO::DataSources::Serial::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_IO__DataSources__Serial.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int IO::DataSources::Serial::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 23)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 23;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 23)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 23;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 13;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void IO::DataSources::Serial::portChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void IO::DataSources::Serial::parityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void IO::DataSources::Serial::baudRateChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void IO::DataSources::Serial::dataBitsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void IO::DataSources::Serial::stopBitsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void IO::DataSources::Serial::portIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void IO::DataSources::Serial::flowControlChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void IO::DataSources::Serial::baudRateListChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void IO::DataSources::Serial::baudRateIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void IO::DataSources::Serial::availablePortsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void IO::DataSources::Serial::connectionError(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 10, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
